<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #outer {
            width: 200px;
            height: 200px;
            background: red;
            padding: 20px;
        }
        
        #middle {
            width: 150px;
            height: 150px;
            background: blue;
            padding: 20px;
        }
        
        #inner {
            width: 100px;
            height: 100px;
            background: green;
        }
    </style>
    <script src="./demo11.js"></script>
</head>

<body>
    <div id="outer">1
        <div id="middle">2
            <div id="inner">3</div>
        </div>
    </div>
    <ul>
        <li>1</li>
        <li>23</li>
        <li>3</li>
    </ul>
    <script>
        document.querySelector("ul").addEventListener("click", (event) => {
            console.log(event.target.innerHTML)
        })
        document.querySelector("#outer").addEventListener("click", (event) => {
            console.log(event.target)
        })
        console.log(parent)
    </script>
</body>

</html>